package com.newlink.building.login.mvp.model

import com.newlink.building.login.mvp.contract.Module_Login_InputMobileContract
import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.common_base.model.bean.VerifyCodeRequest
import io.reactivex.Observable

/**
 * Created by Jake on 2022/8/24.
 */
class Module_Login_InputMobileModel : BaseModel(), Module_Login_InputMobileContract.Model {
    override fun sendSMS(request: VerifyCodeRequest): Observable<HttpResult<Boolean?>> {
        return Base_RetrofitHelper.service.sendForgetPwdMobile(
            request.area,
            request.mobile,
            request.userCategory
        )
    }
}